package com.yuju.order.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.yuju.common.core.dao.AbstractBaseDao;
import com.yuju.order.dao.IRoomOrderDao;
import com.yuju.order.dao.entity.RoomOrder;
import com.yuju.order.dao.mapper.RoomOrderMapper;
import com.yuju.order.model.RoomOrderModel;
import com.yuju.persist.base.mapper.BaseMapper;
/**
 * 
 * 类名：RoomOrderDaoImpl  <br />
 *
 * 功能：
 *
 * @author : sunyl <br />
 * @Date : 2017年11月25日 下午4:40:47  <br />
 * @version : 1.1 <br />
 */
@Repository
public class RoomOrderDaoImpl extends AbstractBaseDao<RoomOrderModel, RoomOrder, String> implements IRoomOrderDao {
	@Autowired
	RoomOrderMapper RoomOrderMapper;
	
	@Override
	public BaseMapper<RoomOrder, String> getMapper() {
		// TODO Auto-generated method stub
		return RoomOrderMapper;
	}

	@Override
	public void updateCheckoutDate() {
		// TODO Auto-generated method stub
		RoomOrderMapper.updateCheckoutDate();
	}

	@Override
	public List<RoomOrderModel> dueOut(RoomOrderModel model) {
		// TODO Auto-generated method stub
		return RoomOrderMapper.dueOut(getBeanMap(model));
	}

}
